<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>SWFUpload Demos - Application Demo</title>
<script type="text/javascript" src="public/swfupload.js"></script>
<script type="text/javascript" src="public/jquery.js"></script>
<script type="text/javascript">
/*
        var swfu;
        $(function () {
            swfu = new SWFUpload({
                // Backend Settings
                upload_url: "upload.php",
                post_params: {"PHPSESSID": "mf78cp0njat9cu5n7sm8u0i0n0"},

                // File Upload Settings
                file_size_limit : "2 MB",   // 2MB
                file_types : "*.jpg",
                file_types_description : "JPG Images",
                file_upload_limit : "0",

                // Event Handler Settings - these functions as defined in Handlers.js
                //  The handlers are not part of SWFUpload but are part of my website and control how
                //  my website reacts to the SWFUpload events.
                file_queue_error_handler : fileQueueError,
                file_dialog_complete_handler : fileDialogComplete,
                upload_progress_handler : uploadProgress,
                upload_error_handler : uploadError,
                upload_success_handler : uploadSuccess,
                upload_complete_handler : uploadComplete,
                // Button Settings
                //button_image_url : "images/SmallSpyGlassWithTransperancy_17x18.png",
                button_placeholder_id : "spanButtonPlaceholder",
                //button_width: 180,
                //button_height: 18,
                //button_text : '<span class="button">Select Images <span class="buttonSmall">(2 MB Max)</span></span>',
                //button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
                //button_text_top_padding: 0,
                //button_text_left_padding: 18,
                //button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
                //button_cursor: SWFUpload.CURSOR.HAND,
                
                // Flash Settings
                flash_url : "public/swfupload.swf",

                custom_settings : {
                    upload_target : "divFileProgressContainer"
                },
                
                // Debug Settings
                debug: false
            });
        });
 */
    </script>
</head>
<body>
<div id="header">
    <div id="version">v2.2.0</div>
</div>
<div id="content">
        <form>
        <div style="display: inline; border: solid 1px #7FAAFF; background-color: #C5D9FF; padding: 2px;">
            <span id="spanButtonPlaceholder">123</span>
        </div>
    </form>
        <div id="divFileProgressContainer" style="height: 75px;"></div>
    <div id="thumbnails"></div>
</div>
<script>
        $(function () {
            var uploadStartEventHandler = function (file) {
                return true;
            };
            var uploadSuccessEventHandler = function (file, server_data) {
                console.log("The file " + file.name + " has been delivered to the server. The server responded with " + server_data);
            };
            var swfu = new SWFUpload({
                upload_url: "upload.php",
                flash_url : "public/swfupload.swf",
                upload_start_handler : uploadStartEventHandler,
                upload_success_handler : uploadSuccessEventHandler,
                button_placeholder_id: "spanButtonPlaceholder",
                button_width: "65",
                button_height: "29"
            });
        });
</script>
</body>
</html>

